<?php

namespace App\Http\Controllers\User;

use App\Http\Controllers\Controller;
use App\Services\SocialService;
use Illuminate\Http\Request;

/**
 * Copyright (C), 2021-2021, old_liu_cms.
 * FileName: ${FILE_NAME}
 * Description: 说明
 *
 * @author head_img
 * @Create Date    2021/10/10 14:09
 * @Update Date    2021/10/10 14:09 By head_img
 * @version v1.0
 */
class SocialController extends Controller
{
    protected $service;
    protected $request;

    /**
     * AuthController constructor.
     * @param SocialService $service
     * @param Request $request
     */
    public function __construct(SocialService $service,Request $request)
    {
        $this->service = $service;
        $this->request = $request;
    }

    /**
     * FunctionName：socials
     * Description：
     * Author：lwl
     * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection
     */
   public function socials()
   {
       return $this->service->getAll();
   }
}
